package com.cusc.module_apply.model;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

import com.cusc.module_apply.BR;
import com.tcgroup.phone.base_core.widget.model.TabItemModel;

/**
 * 作者: wangfei
 * 创建时期: 2020/4/17.
 * 包名: com.cusc.module_apply.model
 * 类名: OSAndroidMvvm
 */
public class ApplyMainModel extends BaseObservable implements TabItemModel  {

    public String title;
    public int icon;
    public boolean showIcon;

    public ApplyMainModel(String title, int img,boolean showIcon) {
        this.title = title;
        this.icon = img;
        this.showIcon = showIcon;
    }

    @Bindable
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
        notifyPropertyChanged(BR.title);
    }

    @Bindable
    public int getIcon() {
        return icon;
    }

    public void setIcon(int img) {
        this.icon = img;
        notifyPropertyChanged(BR.icon);
    }

    @Bindable
    public boolean isShowIcon() {
        return showIcon;
    }

    @Bindable
    public void setShowIcon(boolean showIcon) {
        this.showIcon = showIcon;
        notifyPropertyChanged(BR.showIcon);
    }
}
